{% extends "base.html" %}{% load i18n crm_tags %} {% block title %}{% translate "Backup" %}{% endblock %} {% block content %}

{% translate "Backup" %}

{% translate "Download all the call center’s data in one file, and put it back after reinstalling, updating or moving the CRM to another computer or server. Only administrators can do this." %}

{% translate "Download a backup" %}

{% translate "One .zip file with everything in the CRM now:" %}

{% translate "It also has the main lists as spreadsheets, so you can read the data offline in Excel without the CRM." %}

{% if last %}

{% blocktranslate trimmed with when=last.at|date:"j M Y, H:i" who=last.who ago=last.at|timesince %}Last downloaded {{ when }} by {{ who }} ({{ ago }} ago).{% endblocktranslate %}

{% else %}

{% translate "No backup has been downloaded yet." %}

{% endif %} {% translate "Download backup (.zip)" %}

{% translate "The file holds prayer requests, giving and phone numbers. Keep it private: on a USB stick or the church’s cloud storage, not on a shared phone. Download one every week." %}

{% translate "Put a backup back" %}

{% translate "This replaces ALL current data" %} {% translate "Contacts, calls, prayer requests, giving, orders, the team and shifts become exactly what is in the file. Anything added since that backup was made is lost. Everyone is signed out and signs in again with the password they had when the backup was made." %}
{% csrf_token %} {% include "_field.html" with field=form.file %}

{% translate "Nothing is replaced yet: next you will see what is in the file and confirm." %}

{% translate "Nightly copy to a second place" %}

{% if second.configured %}
{% csrf_token %}
{% endif %}
{% if second.configured %}

{% if second.one_computer %}{% blocktranslate trimmed with time=second.time|time:"H:i" %}Every night at {{ time }}, a full backup is copied to the place below. If this computer was off then, the copy is made as soon as the CRM runs again.{% endblocktranslate %}{% else %}{% translate "Every night, with the server’s own backup, a full backup is copied to the place below." %}{% endif %} {% blocktranslate trimmed count keep=second.keep %}The newest copy is kept there.{% plural %}The newest {{ keep }} copies are kept there.{% endblocktranslate %}

{% if second.last_failed %}
{% blocktranslate trimmed with when=second.last_failed.at|date:"j M Y, H:i" %}The last copy didn’t work ({{ when }}){% endblocktranslate %}{{ second.last_failed.note }}
{% endif %} {% if second.last_ok %}

{% blocktranslate trimmed with when=second.last_ok.at|date:"j M Y, H:i" ago=second.last_ok.at|timesince %}Last good copy: {{ when }} ({{ ago }} ago).{% endblocktranslate %} {{ second.last_ok.note }}

{% else %}

{% translate "No copy has been made yet. Press Copy now to test it." %}

{% endif %} {% if second.recent %}
{% for e in second.recent %} {{ e.get_kind_display }} {% endfor %}
{% translate "When" %}{% translate "Who" %}{% translate "What" %}{% translate "Details" %}
{{ e.at|date:"j M Y H:i" }}{{ e.who }}{{ e.note }}
{% endif %} {% else %}
{% translate "Not set up yet" %}{% translate "Your data is only on this computer or server. If it is stolen or breaks, everything since your last downloaded backup is lost." %}

{% translate "Choose a second place: a USB drive that stays plugged in, a shared folder on another office computer, or a folder that Google Drive, OneDrive or Dropbox keeps in sync. Then:" %}

{% endif %}

{% translate "History" %}

{% translate "Who downloaded or put back a backup" %}
{% if events %}
{% for e in events %} {% endfor %}
{% translate "When" %}{% translate "Who" %}{% translate "What" %}{% translate "Details" %}
{{ e.at|date:"j M Y H:i" }}{{ e.who }}{{ e.get_kind_display }}{{ e.note }}
{% else %}

{% translate "Nothing yet." %}

{% endif %}
{% endblock %}